{extend name="public:index"/}
{block name="title"}{:sysconf('title')}{/block}
{block name="content"}
<section class="whtop">
    <div class="top">
        <p class="p1"><a href="javascript:history.back(-1)"></a></p>
        <p class="p2">我的账户</p>
        <p class="p3"></p>
    </div>
</section>
<section style="height:2rem;"></section>
<section class="jifenbox">
    <p class="p1"><img src="__INDEX__/images/qian.png" alt=""></p>
    <p class="p2">
        <span>账户余额：<em>{$userBalance}</em></span>
    </p>
</section>
<section class="ncbj_caipro3">
    <div class="httop">
        <p class="p1 canp1">收支明细</p>
        <p class="p2">提现记录</p>
    </div>
    <div class="caiprobox">
        <div class="caipro">
            <div class="caipromain">
                {if condition="$balance"}
                <dl>
                    <dt></dt>
                    {foreach name="balance" item="balance"}
                    <dd>
                        <p class="p1">
                            <span class="span1">{$balance.description}</span>
                            <span class="span2">
                                {if condition="$balance.plus_minus eq '-'"}
                                <i>{$balance['plus_minus']}{$balance['money']}</i>
                                {else if condition="$balance.plus_minus eq '+'"}
                                <em>{$balance['plus_minus']}{$balance['money']}</em>
                                {/if}
                            </span>
                        </p>
                        <p class="p2">
                            <span class="span1">{$balance['add_time']}</span>
                            <span class="span2"></span>
                        </p>
                    </dd>
                    {/foreach}
                </dl>
                {else/}
                <div class="nofind"><img src="__INDEX__/images/nosp.png" alt=""><p>暂时没有记录</p></div>
                {/if}
            </div>
            <div class="caipromain caipromain1">
                {if condition="$cash"}
                <dl>
                    <dt></dt>
                    {foreach name="cash" item="cash"}
                    <dd>
                        <p class="p1">
                            <span class="span1">{$cash['bank_bank']}</span>
                            <span class="span2">{$cash['money']}</span>
                        </p>
                        <p class="p2">
                            <span class="span1">{$cash['add_time']}</span>
                            <span class="span2">提现成功</span>
                        </p>
                    </dd>
                    {/foreach}
                </dl>
                {else/}
                <div class="nofind"><img src="__INDEX__/images/nosp.png" alt=""><p>暂时没有记录</p></div>
                {/if}
            </div>
        </div>
    </div>
    <div style="height:2.5rem;"></div>

    <div class="nctixian"><a href="{:url('User/cash')}">余额提现</a></div>
</section>
<script>
    $('.ncbj_caipro3 .httop p').click(function(){
        var thi = $(this).index();
        $('.caipro .caipromain').hide();
        $('.caipro .caipromain').eq(thi).show();
        $(this).addClass('canp1').siblings().removeClass('canp1');
    });
</script>
{/block}